using System;
using System.ComponentModel;
using System.Linq;

using Newtonsoft.Json;
using Newtonsoft.Json.Linq;

namespace ApiTest2.Entitys
{
    /// <summary>
    /// 系统字典
    /// </summary>  
    /// <remarks>
    /// <![CDATA[ENGINE=InnoDB  COMMENT='系统字典']]>
    /// </remarks>
    [DbSource("Default"), Serializable]
    public class SysDict
    {
        /// <summary>
        /// dict_id
        /// </summary>
        /// <remarks>
        /// <![CDATA[int NOT NULL COMMENT '']]>
        /// </remarks>
        [Primary]
        public int DictId { get; set; }

        /// <summary>
        /// 字典类型 [SysConfig=系统配置,Upload=上传目录,SysPlatform=系统平台,Banner=轮播广告,Bank=银行字典,Logistics=物流公司]
        /// </summary>
        /// <remarks>
        /// <![CDATA[varchar(32) NOT NULL COMMENT '字典类型 [SysConfig=系统配置,Upload=上传目录,SysPlatform=系统平台,Banner=轮播广告,Bank=银行字典,Logistics=物流公司]']]>
        /// </remarks>
        [Column(32, false)]
        [DisplayName("字典类型")]
        public string DictType { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        /// <remarks>
        /// <![CDATA[varchar(63) NOT NULL COMMENT '名称']]>
        /// </remarks>
        [Column(63, false)]
        [DisplayName("名称")]
        public string Name { get; set; }

        /// <summary>
        /// 代号 必填不可重复
        /// </summary>
        /// <remarks>
        /// <![CDATA[varchar(11) NOT NULL COMMENT '代号 必填不可重复']]>
        /// </remarks>
        [Column(11, false)]
        [DisplayName("代号")]
        public string Code { get; set; }

        /// <summary>
        /// value
        /// </summary>
        /// <remarks>
        /// <![CDATA[varchar(255) DEFAULT NULL COMMENT '']]>
        /// </remarks>
        [Column(255)]
        public string Value { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        /// <remarks>
        /// <![CDATA[int NOT NULL COMMENT '排序']]>
        /// </remarks>
        [Column(false)]
        [DisplayName("排序")]
        public int Sort { get; set; }

        /// <summary>
        /// remark
        /// </summary>
        /// <remarks>
        /// <![CDATA[varchar(511) DEFAULT NULL COMMENT '']]>
        /// </remarks>
        [Column(511)]
        public string Remark { get; set; }

    }
}
